Python in Sublime
- Install Python3
- Install Sublime3
- Install Package Control in Sublime3
- Switch Python3 as default version: edit config file ~/.bash_profile add a line:
alias python="/usr/local/bin/python3"
and thensource ~/.bash_profile
save configuration. - Install Scrapy
pip3 install Scrapy
and create linkln -s /Library/Frameworks/Python.framework/Versions/3.7/bin/scrapy /usr/local/bin/scrapy
1 | o 加一行 |